import Login1 from '@/views/Login1.vue'
import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [{
    path: '/',
    component: Login1
  },
  {
    path: '/homepage',
    redirect: '/homepage/shouye',
    component: ()=> import('../views/HomePage.vue'),
    children:[
      {
        path: '/homepage/shouye',
        component: ()=> import('../views/shouye/ShouYe.vue')
      },{ // 课程分类管理 大家可以都复制这个模版到自己创建的vue文件中
        path: '/homepage/onlineUser',
        component: ()=> import('../views/courseManager/OnlineUser.vue')
      },{ // 课程分类管理 大家可以都复制这个模版到自己创建的vue文件中
        path: '/homepage/courseTypeView',
        component: ()=> import('../views/courseManager/courseTypeView.vue')
      }

      ,{ // 课程管理
        path: '/homepage/course',
        component: ()=> import('../views/courseManager/Course.vue')
      },{ // 课程评价管理
        path: '/homepage/coursemark',
        component: ()=> import('../views/courseManager/Coursemark.vue')
      },{ // 课程交流管理
        path: '/homepage/coursetalk',
        component: ()=> import('../views/courseManager/Coursetalk.vue')
      },{ // 课程回复管理
        path: '/homepage/coursereply',
        component: ()=> import('../views/courseManager/Coursereply.vue')
      }

      ,{ // 咨询师等级管理
        path: '/homepage/consultLevelView',
        component: ()=> import('../views/consultTeacherManager/ConsultLevelView.vue')
      },{ // 用户评价
        path: '/homepage/pingJia',
        component: ()=> import('../views/consultAppointManager/UserPingJIaView.vue')
      },{ // 首页的个人中心（右上角）
        path: '/homepage/personCenter',
        component: ()=> import('../views/shouye/PersonCenter.vue')
      },{// 操作日志在这个项目里本来是没有的，留着你们可以复制模板到自己创建的新的vue文件中 
        path: '/homepage/opLogin',
        component: ()=> import('../views/shouye/OpLogin.vue')
      },{// 这个本来也不属于这个项目，只是提供模版，换个名复制就能用 这个文件里的数据没有用el-table，可以换成el-table组件
        path: '/homepage/dicManager',
        component: ()=> import('../views/sysManager/DicManager.vue')
      },{ // 内容管理-》心理测评管理
        path: '/homepage/mindTest',
        component: ()=> import('../views/contentManager/weichen/MindTestManager.vue')
      },{ // 心理答疑管理->问题管理
        path: '/homepage/question',
        component: ()=> import('../views/mindAQManager/weichen/Question.vue')
      },{ // 心理答疑管理->恢复管理
        path: '/homepage/reply',
        component: ()=> import('../views/mindAQManager/weichen/Reply.vue')
      },{ // 师资管理->擅长领域管理
        path: '/homepage/specialty',
        component: ()=> import('../views/consultTeacherManager/weichen/SpecialtyManager.vue')
      },{ // 内容管理->用户（我的）测评管理
        path: '/homepage/myTest',
        component: ()=> import('../views/contentManager/weichen/MyTestManager.vue')
      },{ // 内容管理->用户（我的）测评管理
        path: '/homepage/mindTestQ',
        component: ()=> import('../views/contentManager/weichen/MindTestQManager.vue')
      },{ // 文章管理->精选文章
        path: '/homepage/article',
        component: ()=> import('../views/contentManager/lishenao/Article.vue')
      },{ // 文章管理->FM
        path: '/homepage/FM',
        component: ()=> import('../views/contentManager/lishenao/Fm.vue')
      },{ // 文章管理->free
        path: '/homepage/Free',
        component: ()=> import('../views/contentManager/lishenao/Free.vue')
      },{ // 文章管理->free
        path: '/homepage/AticleType',
        component: ()=> import('../views/contentManager/lishenao/AticleType.vue')
      },{ // 文章管理->free
        path: '/homepage/HeartKonwledge',
        component: ()=> import('../views/contentManager/lishenao/HeartKnowledge.vue')
      },{//系统用户
      path:'/sysManager/system',
        component: ()=> import('../views/sysManager/system.vue')
      },{//普通用户
      path:'/sysManager/user',
        component: ()=> import('../views/sysManager/user.vue')
      },{//咨询师管理
        path: '/homepage/consult',
        component: ()=> import('../views/consultTeacherManager/wutao/Consult.vue')
      },{//咨询师证书管理
        path: '/homepage/consultCertificate',
        component: ()=> import('../views/consultTeacherManager/wutao/ConsultCertificate.vue')
      },{//收费类型表
        path: '/homepage/charge',
        component: ()=> import('../views/consultTeacherManager/wutao/Charge.vue')
      },{//收费标准表
        path: '/homepage/chargetype',
        component: ()=> import('../views/consultTeacherManager/wutao/Chargetype.vue')
      },{//私信表
        path: '/homepage/privatemessage',
        component: ()=> import('../views/consultTeacherManager/wutao/Privatemessage.vue')
      },{//咨询师管理
        path: '/homepage/consult',
        component: ()=> import('../views/consultTeacherManager/wutao/Consult.vue')
      },{//咨询师管理
        path: '/homepage/questionReply',
        component: ()=> import('../views/mindAQManager/weichen/QuestionReply.vue')
      }
      //咨询预约
      ,{
        path:'/sysManager/appointment',
        component: ()=> import('../views/sysManager/appointment.vue')
      },
        //公司管理
      {
        path:'/sysManager/company',
        component: ()=> import('../views/sysManager/company.vue')
      },
        //课程收藏
      {
        path:'/sysManager/courseSC',
        component: ()=> import('../views/sysManager/CourseSc.vue')
      },
        //我的通知
      {
        path:'/sysManager/mynotice',
        component: ()=> import('../views/sysManager/mynotice.vue')
      },
        //课程购买记录
      {
        path:'/sysManager/Coursepay',
        component: ()=> import('../views/sysManager/Coursepay.vue')
      },
        //咨询回复
      {
        path:'/sysManager/appointmentreply',
        component: ()=> import('../views/sysManager/appintmentreply.vue')
      },
      //相关咨询师
    {
      path:'/homepage/relativeConsults',
      component: ()=> import('../views/consultTeacherManager/weichen/RelativeConsults.vue')
    },
    ]
  }
  ],
})

export default router
